package com.ruoyi.commodity.service;

import com.ruoyi.commodity.domain.Commodity;
import com.ruoyi.commodity.domain.vo.CommodityQueryVo;
import com.ruoyi.commodity.domain.vo.CommodityVo;
import com.ruoyi.system.api.domain.SysUser;

import java.util.List;

public interface ICommodityService {


    public boolean checkCommodityNameUnique(Commodity commodity);

    public int insertCommodity(Commodity commodity);

    int deleteCommodityById(Long commodityId);
    CommodityVo selectCommodityById( Long commodityId);

    int updateCommodity(Commodity commodity);

    List<CommodityVo> selectCommodityList(CommodityQueryVo commodityQueryVo);
}
